/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Controller;

import Database.DBCustomer;
import Database.IFDBCustomer;
import Domain.Customer;
import java.util.ArrayList;

/**
 *
 * @author Min0
 */
public class CTRLCustomer {
    
    private IFDBCustomer Customer;
    
    public CTRLCustomer()
    {
        Customer = new DBCustomer();
    }
    
    public void InsertCustomer(Customer appartment)
    {
        Customer.InsertCustomer(appartment);
    }
    
    public void InsertCustomer(String LoginID, String Name, String Address, String Country, String PhoneNo, String Email, float Bill, float Deposit, int BookedActivities, int MaxBookedActivities)
    {
        Customer.InsertCustomer(LoginID, Name, Address, Country, PhoneNo, Email, Bill, Deposit, BookedActivities, MaxBookedActivities);
    }
    
    public Customer GetCustomer(String LoginID)
    {
        return Customer.GetCustomer(LoginID);
    }
    
    public ArrayList<Customer> GetCustomerList()
    {
        return Customer.GetCustomerList();
    }
    
    public void UpdateCustomer(String LoginID, String Name, String Address, String Country, String PhoneNo, String Email, float Bill, float Deposit, int BookedActivities, int MaxBookedActivities)
    {
        Customer.UpdateCustomer(LoginID, Name, Address, Country, PhoneNo, Email, Bill, Deposit, BookedActivities, MaxBookedActivities);
    }
    
    public void UpdateCustomer(String LoginID, float deposit)
    {
        Customer.UpdateCustomer(LoginID, deposit);
    }
    
    public void UpdateCustomer(String LoginID, int bookedActivities)
    {
        Customer.UpdateCustomer(LoginID, bookedActivities);
    }
    
    public void UpdateCustomerBill(String LoginID, float amount)
    {
        Customer.UpdateCustomerBill(LoginID, amount);
    }
    
    public void DeleteCustomer(String LoginID)
    {
        Customer.DeleteCustomer(LoginID);
    }
    
    public int getMax()
    {
        return Customer.getMax();
    }
}
